import com.lishanyang.spring.biz.UserBiz;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOPTest {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserBiz userBiz=(UserBiz)context.getBean("ubAfterLogAdvice");
        userBiz.addUser("zhangsan","123");
        userBiz.delUser(1);
    }
}
